package com.homework.bean;


import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;
import com.homework.service.ServiceInterface;

@Component
public class ConsumerComponent {

    @Reference
    private ServiceInterface service;

    public String aMethod() {
        return service.methodA();
    }

    public String bMethod() {
        return service.methodB();
    }

    public String cMethod() {
        return service.methodC();
    }
}
